package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("t_butchevolume")
public class ButcheVolume {
    /**
     * 日屠宰量主键ID
     */
    @TableId(value = "ButcheId", type = IdType.AUTO)
    private Integer butcheId;
    /**
     * 用户ID
     */
    @TableField("UId")
    private Integer uid;
    /**
     * 企业ID
     */
    @TableField("EId")
    private Integer eid;
    /**
     * 屠宰日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    @TableField("ButcheDate")
    private Date butcheDate;
    /**
     * 动物种类
     */
    @TableField("AnimalType")
    private String animalType;
    /**
     * 屠宰数量
     */
    @TableField("ButcheVolume")
    private Integer butcheVolume;
    /**
     * 上报日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    @TableField("ReportDate")
    private Date reportDate;
    /**
     * 备注
     */
    @TableField("Remarks")
    private String remarks;
}
